package com.ysxsoft.wdg.adapter.th;


import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ysxsoft.wdg.R;

public class ThMjAdapter extends BaseQuickAdapter<String,BaseViewHolder> {


    public ThMjAdapter(int layoutResId) {
        super(layoutResId);
    }

    public void clear(){
        getData().clear();
        notifyDataSetChanged();
    }


    @Override
    protected void convert(BaseViewHolder helper, String item) {

//        Glide.with(mContext).load(item.getImage()).into((ImageView) helper.getView(R.id.iv_pic));

//        helper.setText(R.id.tv_mj,"满"+item.+"减"+item.);
        //        helper.setText(R.id.tv_name,item.getName());
        helper.setText(R.id.tv_money,mContext.getString(R.string.price_rmb,"100"));
    }
}
